import body from '@/components/body'
import childView from '@/components/appMain.vue'

const voteRouter = {
  path: '/vote',
  name: '问卷调查',//问卷调查
  component: body,
  isParent: true,
  leaf: true, //只有一个节点
  iconCls: 'icon-liuyan',
  redirect: '/vote/list',
  children: [{
    path: '/vote/list',//问卷调查列表
    name: '问卷列表',
    component: resolve => {
      require(['@/views/operate/vote/list.vue'], resolve)
    },
  }, {
    path: '/vote/save',//问卷新增
    name: '问卷新增',
    component: resolve => {
      require(['@/views/operate/vote/edit.vue'], resolve)
    },
  }, {
    path: '/vote/update',//问卷修改
    name: '问卷修改',
    component: resolve => {
      require(['@/views/operate/vote/edit.vue'], resolve)
    },
  }
  ]
}

export default voteRouter
